package com.weilai.lzt.sms3;

import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class SuccessActivity extends AppCompatActivity {
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_success);
        textView = findViewById(R.id.openid);
        SharedPreferences read = getSharedPreferences("openid", MODE_WORLD_READABLE);
        String openid = read.getString("openid", "");
        textView.setText("您的openid为："+openid);
    }

    protected  void editOpenid(View view){
        Intent intent=new Intent(SuccessActivity.this, EditActivity.class);
        startActivity(intent);
    }

}
